Skip to content

Updated requirements for image-classification samples: datasets>=2.14.0#699

Merged
regisss merged 1 commit into
huggingface:mainfrom
alekseyfa:img_clas/updated_requirements
Feb 11, 2024
Merged

Updated requirements for image-classification samples: datasets>=2.14.0#699
regisss merged 1 commit into
huggingface:mainfrom
alekseyfa:img_clas/updated_requirements

Conversation

@alekseyfa
Copy link
Copy Markdown
Contributor

What does this PR do?

This PR updates the dependency requirements for image-classification case.

The run_image_classification.py script in the current implementation uses the token parameter, which was introduced as of datasets version 2.14.0. Thus, using packages below the specified version may cause errors.

Please see the release link below:
https://github.com/huggingface/datasets/releases/tag/2.14.0

An example of using the argument token in the run_image_classification.py script is shown below:

  if data_args.dataset_name is not None:
      dataset = load_dataset(
          data_args.dataset_name,
          data_args.dataset_config_name,
          cache_dir=model_args.cache_dir,
          token=model_args.token,
      )

https://github.com/huggingface/optimum-habana/blob/main/examples/image-classification/run_image_classification.py#L277

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@alekseyfa alekseyfa requested a review from regisss as a code owner February 9, 2024 11:36
@regisss regisss added the run-test Run CI for PRs from external contributors label Feb 11, 2024
Copy link
Copy Markdown
Collaborator

@regisss regisss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
Feel free to open a PR in Transformers to do the same there 🙂

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@regisss regisss merged commit 3e90348 into huggingface:main Feb 11, 2024
jychen21 pushed a commit to jychen21/optimum-habana that referenced this pull request Feb 27, 2024
dudilester pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Feb 28, 2024
HolyFalafel pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Mar 11, 2024
gplutop7 pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Oct 15, 2025
…e#699)

Co-authored-by: Grzegorz Pluto-Prondzinski <gplutopx@habana.ai>
gplutop7 pushed a commit to HabanaAI/optimum-habana-fork that referenced this pull request Nov 6, 2025
…e#699)

Co-authored-by: Grzegorz Pluto-Prondzinski <gplutopx@habana.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run-test Run CI for PRs from external contributors

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants